home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Internet
/
WWW
/
swish.11
/
src
/
mem.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-11
|
632b
|
34 lines
/*
** Copyright (C) 1995, Enterprise Integration Technologies Corp.
** All Rights Reserved.
** Kevin Hughes, kevinh@eit.com
** 3/11/94
*/
#include "swish.h"
#include "mem.h"
/* Error-checking malloc()...
*/
void *emalloc(i)
int i;
{
void *p;
if ((p = (void *) malloc(i)) == NULL)
progerr("Ran out of memory (could not allocate enough)!");
return p;
}
void *erealloc(ptr, i)
void *ptr;
int i;
{
void *p;
if ((p = (void *) realloc(ptr, i)) == NULL)
progerr("Ran out of memory (could not reallocate enough)!");
return p;
}